<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Function</title>

<script language="JavaScript">
function showMessage(){
	
	var id2 = document.getElementById("idUsr").value;;
   
	window.open ("SendMessage.jsp?ids="+id2, "new windows", "height=400, width=500, top=300,left=400, toolbar=no,  menubar=no, scrollbars=no, resizable=no,location=no, status=no")  
}

function modInfo() {
	
	var idMod = document.getElementById("idUsr").value;
	window.open ("Modify_Champs.jsp?ids="+idMod, "new windows", "height=300, width=300, top=300,left=400, toolbar=no,  menubar=no, scrollbars=no, resizable=no,location=no, status=no")
}

function upImage() {
	
	var idMod = document.getElementById("idUsr").value;
	window.open ("AddPhoto.jsp?ids="+idMod, "new windows", "height=350, width=550, top=300,left=400, toolbar=no,  menubar=no, scrollbars=no, resizable=no,location=no, status=no")
}

function listMessage() {
	
	window.open ("ServletUserFunctions?choise=listMess", "new windows", "height=350, width=550, top=300,left=400, toolbar=no,  menubar=no, scrollbars=yes, resizable=no,location=no, status=no")
}

</script> 

</head>


<body>
<%String id =(String) request.getSession().getAttribute("id"); %>
<%   request.getSession().setAttribute("id", id); %> 
<input  type="hidden" id="idUsr" value=<%=id%>  >

<form>
  <td><input type="button" id="btnMap" onclick="showMessage()" value="Send Message"/></td> 
</form>
 
 
<form>
  <td><input type="button" id="btnMap" onclick="listMessage()" value="Liste Messages"/></td> 
</form>

<!--<form action="ServletUserFunctions" method="post">
	<input type="submit" value="List of Messages">
	<input type="hidden" name="choise" value="listMess">
</form> -->

<!--  <form action="ServletUserFunctions" method="post">
	<input type="submit" value="Change photo">
	<input type="hidden" name="choise" value="changePho">
</form> -->
<form>
  <td><input type="button" id="btnMap" onclick="upImage()" value="Change photo"/></td> 
 </form>

<!--  </form>
<form action="ServletUserFunctions" method="post">
	<input type="submit" value="Show photo">
	<input type="hidden" name="choise" value="showPho">
</form>
</form> -->

<!--  <form action="ServletUserFunctions" method="post">
	<input type="submit" value="Modify profile">
	<input type="hidden" name="choise" value="modProf">
</form> -->

<form>
  <td><input type="button" id="btnMap" onclick="modInfo()" value="Modify Profile"/></td> 
 </form>

</form>

</body>
</html>
